﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LuaInterface;

public class ToluaTest03 : MonoBehaviour {

	// Use this for initialization
	void Start () {
        LuaState state = new LuaState();
        state.Start();
        LuaBinder.Bind(state);//绑定wrap（tolua文件）

        //添加lua的搜索目录
        state.AddSearchPath(Application.dataPath + "/Scripts/");
        state.AddSearchPath(Application.dataPath + 
            "/LuaFramework/ToLua/Lua/");//require tolua的路径
        state.DoFile("typeof.lua");
        state.DoFile("testlua03.lua");
    }
}
